package com.moonstar.service.impl;

import com.moonstar.mapper.FriendMapper;
import com.moonstar.pojo.FriendDO;
import com.moonstar.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class FriendServiceImpl implements FriendService {
	@Autowired
	private FriendMapper friendMapper;

	@Override
	public FriendDO get(Integer id){
		return friendMapper.get(id);
	}

	@Override
	public List<FriendDO> list(Map<String, Object> map){
		return friendMapper.list(map);
	}

	@Override
	public int count(Map<String, Object> map){
		return friendMapper.count(map);
	}

	@Override
	public int save(FriendDO friend){
		return friendMapper.save(friend);
	}

	@Override
	public int update(FriendDO friend){
		return friendMapper.update(friend);
	}

	@Override
	public int remove(Integer id){
		return friendMapper.remove(id);
	}

	@Override
	public int batchRemove(Integer[] ids){
		return friendMapper.batchRemove(ids);
	}

}
